import {
  TypedUseSelectorHook,
  useDispatch as useAppDispatch,
  useSelector as useAppSelector,
} from 'react-redux';
import { RootState, AppDispatch } from './store';

export const useSelector: TypedUseSelectorHook<RootState> = useAppSelector;

export const useDispatch: () => AppDispatch = useAppDispatch;
